﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.ProcurementDomain
{
    /// <summary>
    /// 采购合同
    /// </summary>
    [SugarTable("PurchaseContracts")]
    public class PurchaseContracts : Audit
    {
        /// <summary>
        /// 采购合同 id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] // 主键和自增
        public int PurchaseContractsIds { get; set; }
        /// <summary>
        /// 供应商 id
        /// </summary>
        public int? VendorId { get; set; }
        /// <summary>
        /// 采购合同编号
        /// </summary>
        public string? PCNumber { get; set; }
        /// <summary>
        /// 采购合同名称
        /// </summary>
        public string? PCName { get; set; }
        /// <summary>
        /// 采购合同类别
        /// </summary>
        public string? PCTypes { get; set; }
        /// <summary>
        /// 是否需要到货质检
        /// </summary>
        public bool? PCWhetherQuality { get; set; }
        /// <summary>
        /// 人员档案 id
        /// </summary>
        public int? ManpowerId { get; set; }
        /// <summary>
        /// 我方代表
        /// </summary>
        public int? PCOurRepresentatives { get; set; }
        /// <summary>
        /// 对方代表
        /// </summary>
        public int? PCRepresentParty { get; set; }
        /// <summary>
        /// 采购申请 id
        /// </summary>
        public int? ProcureApplyId { get; set; }
        /// <summary>
        /// 合同日期
        /// </summary>
        public DateTime? PContractsDate { get; set; }
        /// <summary>
        /// 制单日期
        /// </summary>
        public DateTime? PCPreparationDate { get; set; }
        /// <summary>
        /// 产品金额
        /// </summary>
        public decimal? PCProductPrice { get; set; }
        /// <summary>
        /// 优惠总额
        /// </summary>
        public decimal? PCPreferentialPrice { get; set; }
        /// <summary>
        /// 优惠后总额
        /// </summary>
        public decimal? PCAfterOfferPrice { get; set; }
    }
    /// <summary>
    /// 采购合同分页
    /// </summary>
    public class PurchaseContractsPage
    {
        /// <summary>
        /// 总条数
        /// </summary>
        public int listcount { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int pagecount { get; set; }
        public List<PurchaseContracts> list { get; set; }
    }
}
